package com.hc.model.code02.test14;

/**
 * @version v1.0
 * @ClassName: Client
 * @Description: 构造者模式测试类 （链式编程）
 * @Author: HC
 */
public class Client {

    public static void main(String[] args) {
        Phone phone = new Phone.Builder()
                .cpu("intel")
                .screen("三星屏幕")
                .memory("金士顿内存条")
                .mainboard("话说主板")
                .build();
        System.out.println(phone);
    }
}
